<head>
    <script src="../build/index.js"></script>
</head>

<body>
    <canvas id="app"></canvas>

    <script>
        var $app = new Easycanvas.Painter();
        $app.register(document.getElementById('app'), {
            fullScreen: true
        });
        $app.start();

        var G = Easycanvas.ImgLoader('https://raw.githubusercontent.com/c-zhuo/easycanvas/master/demos/G.png');

        var Sprite1 = $app.add({
            content: {
                img: G,
            },
            style: {
                rx: 250, ry: 200,
                left: 250, top: 200,
            },
            drag: {
                dragable: true,
            },
            events: {
                mousemove: function (e) {
                    e.preventDefault();
                    e.stopPropagation();
                }
            }
        });
    </script>
</body>

